package com.itheima.dubbo.api;

import com.itheima.domain.db.QuestionsReport;

import java.util.List;

/**
 * @author 阿鹏
 * @date 2021/3/1 20:55
 */

public interface QuestionsReportApi {
    QuestionsReport findByUserId(Long userId);

    List<QuestionsReport> findByCid(Long id);

    QuestionsReport findByCidAndUserId(Long id, Long userId);

    Long saveReport(QuestionsReport questionsReport);

    Long updateReport(QuestionsReport questionsReport);

    QuestionsReport findById(Long reportId);

    List<QuestionsReport> findAll();
}
